<?php
/**
 * Description: 二维码相关
 * User: wh
 * Date: 2017-08-31
 * Time: 16:48
 */
namespace app\wxbackend\controller\Wx;
class WxScene
{
    /**
     * @comment
     * @author wuhao
     * @param $qrcode 生成二维码参数
     */
    public static function getScene($qrcode)
    {
        $accessToken = WxAccessToken::getAccessToken();
        $url = "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=".$accessToken;
        $res = Curl::callWebServer($url, $qrcode, 'POST');
        return $res;
    }
}